import {lazy} from 'react'

const Index = lazy(() => import('../views/Home.jsx'))
const routes = [
    {
        path: '/home',
        component: Index,
        children: []
    },
    {
        path: '/',
        redirect: '/home', // 重定向:重新指向其它path,会改变网址
    }
]

export default routes